package cn.stylefeng.guns.modular.gridsystem.temperature.entity;

import cn.stylefeng.guns.core.pojo.base.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 开关柜的外体温度预警
 *
 * @author
 * @date 2024-06-05
 */
@Data
@EqualsAndHashCode(callSuper = true)//Lombok注解之一，用于自动生成equals(Object other)和hashCode()方法。
@TableName("biz_temperature_exception")
public class BizTemperatureException extends BaseEntity {

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField(value = "device_id")
    private Integer deviceId; //关联的设备',
    /**
     * 温度故障类型(建字典 temp_type=1 温度过高  2 温度波动异常)',
     */
    @TableField(value = "error_type")
    private Integer errorType;

    @TableField(value = "gateway_id")
    private Integer gatewayId;//上报网关的编号',

    @TableField(value = "status")
    private Integer status;//故障处理状态（0未处理，1已处理）


    @TableField(value = "is_delete")
    private Integer isDelete;

    //处理人
    private Long manageUserId;
    //处理时间
    private String manageTime;
}
